//
//  List.h
//  AlgorithmDemo
//
//  Created by zxs on 2020/8/5.
//  Copyright © 2020 zxs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ListNode.h"

NS_ASSUME_NONNULL_BEGIN

@interface List : NSObject

// 添加节点，加在头部
- (void)addNode:(ListNode *)node;

// 方便方法，添加一组节点
- (void)addNodes:(NSArray *)datas;

// 读取所有节点
- (NSArray *)readAllNodes;

// 倒序
- (void)reverse;

@end

NS_ASSUME_NONNULL_END
